package ooday2;

public class Student extends Person{
    String className;
    String stuId;
    Student(String name,int age,String address,String className,String stuId){
        super(name,age,address);
    }
    void study(){
        System.out.println(age+"岁"+name+"班级为"+className+"学号为"+stuId+"在学习");
    }
    void sayHi(){
        System.out.println("你好我是"+name+"今年"+age +"岁了"+"家住"+address+"班级为"+className+"学号是"+stuId);
    }
}
